java.lang.Object
edu.claflin.finder.algo.clustering.struct.fast_greedy_struct.IndexedHeapQueue

public class IndexedHeapQueue extends Object
Author:
Cesar Martin
  • Field Details

  • Constructor Details

    • IndexedHeapQueue

      public IndexedHeapQueue()
  • Method Details

    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • add

      public void add(int i, int j, double a)
    • peek

      public IndexedHeapNode peek()
    • poll

      public IndexedHeapNode poll()
    • replaceNodes

      public void replaceNodes(List<IndexedHeapNode> nodes)
      Replace nodes in the queue with their counterparts in a given list, according to row number (i).
      Parameters:
      nodes - the new Nodes
    • toString

      public String toString()
      Overrides:
      toString in class Object